package com.imchen.cms.cmsweb.controller;

import com.imchen.cms.model.Log;
import com.imchen.cms.service.LogService;
import com.imchen.cms.utils.ServiceUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;

/**
 * @author imchen
 * @create: 2019-02-21 12:00
 **/
@RestController
@RequestMapping("/log")
public class LogController implements BaseController<Log> {


    @Autowired
    private LogService logService;

    @Override
    @PostMapping("/add")
    public HashMap add(Log log) throws Exception {
        return logService.add(log);
    }

    @Override
    public int remove(int id) {
        return 0;
    }

    @Override
    public int delete(int id) {
        return 0;
    }

    @Override
    public int update(Log log) {
        return 0;
    }

    @Override
    public HashMap<String, Object> find(int id) {
        return null;
    }
}